<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>05</title>
    <style>
        .comtainer {
            background-color: lightgreen;
            display: flex;
        }
        .item {
            width: 100px;
            height: 100px;
            background-color: llightyellow;
            border: 3px solid deeppink;
            font-size: 45px;
            float: left;
            /* 左对齐排列 */
            justify-content: flex-start;
            /* 右对齐排列 */
            justify-content: flex-end;
            /* 两端对齐，项目之间的间隔相等 */
            justify-content: space-between;
            /* 每个项目两侧的间隔相等 */
            justify-content: space-around;
            /* 居中排列 */
            justify-content: center;
            /* 项目间平均分布，包括首尾 */
            justify-content: space-evenly;
        }
    </style>
</head>
<body>
<div class="container">
    <div class="item">1</div>
    <div class="item">2</div>
    <div class="item">3</div>
    <div class="item">4</div>
    <div class="item">5</div>
    <div class="item">6</div>
    <div class="item">7</div>
</div>
</body>
</html>